From: Keir Fraser Date: Tue, 15 Apr 2008 14:44:40 +0000 (+0100) Subject: x86: per-domain p2m structure must be initialised to all-zeroes when X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14215^2~187 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=dc4c72a5fc74288f6e2f528b5afcf8226f89d43f;p=xen.git x86: per-domain p2m structure must be initialised to all-zeroes when it is allocated. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c index 97d92880bb..faee13955e 100644 --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -414,6 +414,7 @@ int p2m_init(struct domain *d) d->arch.p2m = p2m; + memset(p2m, 0, sizeof(*p2m)); p2m_lock_init(p2m); INIT_LIST_HEAD(&p2m->pages);